#!/usr/bin/env python3.9
# -*- encoding: utf-8 -*-
"""
@文件        :urls.py
@说明        :证件照路由
@时间        :2022/11/30 08:40:07
@作者        :Mars
@版本        :1.0
"""

from django.urls import include, path
from rest_framework.routers import DefaultRouter

from . import views

router = DefaultRouter()  # 只需要实现一次
router.register("background", viewset=views.BackgroundView, basename="bg")
router.register("category", viewset=views.CategoryView, basename="cate")
router.register("idphoto", viewset=views.IDPhotoView, basename="idphoto")


urlpatterns = [
    path("/", include(router.urls)),
]
